<?php

namespace app\admin\model;

use think\Model;

class SourceConfig extends Model
{
    protected $name = "source_config";
    protected $createTime = 'add_time';
    protected $autoWriteTimestamp = 'int';
    protected $append = ['entry_text'];
    //======= 登录入口
    protected function getEntryTextAttr($val,$data)
    {
        switch ($data['login_entry'])
        {
            case 0:return "本站";
            case 1:return "宝典";
            case 2:return "助考";
        }
    }
}